#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QtMultimedia/QSoundEffect>
#include <QtMultimedia/QAudioDevice>
#include <QtCore/QRandomGenerator>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:

    void examinate();
    void exercise();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_ptEcho_textChanged();

    void delay(int);

private:
    Ui::Widget *ui;

    QSoundEffect playDotDash ;
    QAudioDevice advc;
    QSqlDatabase db;
    QSqlQuery *qr;
    QMap<QString, QString> base;
    int sepO, sepI, charCount;
    QString sq, currentText;
    bool isRun, waitInput;
    QRandomGenerator r;

};
#endif // WIDGET_H
